package com.greyu.ysj.service;

import java.util.List;

import com.greyu.ysj.entity.CbtInvitedIncome;
import com.greyu.ysj.model.ResultModel;

public interface CbtInvitedIncomeService {
		//添加
		ResultModel save(CbtInvitedIncome cbtInvitedIncome);
		//获取用户一二级总的奖励
		double getAllRewardByuserId(Integer userId);
		double selectYesterdayIncomeByuserId(int userId);
		//获取用户邀请列表
		List<CbtInvitedIncome> selectAllByuserId(Integer page,Integer rows,Integer userId);
		//
		int totalPages(int rows,int userId);
		//
		int countByuserId(int userId);
		
		double selectDirectRewardByuserId(Integer userId);
		
		double getAllIncomeByUserId(Integer userId);
		
		double getYesterdayIncomeByUserId(Integer userId);
		double getYesterdayInvIncomeByUserId(Integer userId);
		
		double selectDirectIncomeByuserId(Integer userId);
		
		double selectInvIncomeByuserId(Integer userId);
}
